<?php $permArray=explode(",", $sessionUserData['user_permissions']); ?>
<table width="200px">
  <tr>
	<td align="center">
	<table width="70%" border="0" cellpadding="0" cellspacing="0">
	<?php if ($sessionUserData['user_id']==1){ ?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/addUser"
			class="<?php if ($pTabSelection=="addUser"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add User </a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/editUserPerm"
			class="<?php if ($pTabSelection=="editUserPerm"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Edit Permission </a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/reviewCoupons"
			class="<?php if ($pTabSelection=="reviewCoupons"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Review Coupons </a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/reviewStores"
			class="<?php if ($pTabSelection=="reviewStores"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Review Stores </a></td>
	</tr>
    <!-- <tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/showStoreViews"
			class="<?php if ($pTabSelection=="showStoreViews"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Store Views </a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/showPopStore"
			class="<?php if ($pTabSelection=="showPopStore"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Popular Stores </a></td>
	</tr>-->
	<?php } ?>
    <?php if (in_array(1, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/CategoryCMS"
			class="<?php if ($pTabSelection=="CategoryCMS"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add Category</a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/viewCategories"
			class="<?php if ($pTabSelection=="viewCategories"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				View Categories </a></td>
	</tr>
	<?php } ?>
	<?php if (in_array(2, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/StoreCMS"
			class="<?php if ($pTabSelection=="StoreCMS"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add Store</a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/getStoresBy/rejected"
			class="<?php if ($pTabSelection=="viewAirline"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				View Stores </a></td>
	</tr>
	<?php } ?>
	<?php if (in_array(3, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/CouponCMS"
			class="<?php if ($pTabSelection=="couponCMS"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add Coupon</a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/viewCoupons/rejected/0"
			class="<?php if ($pTabSelection=="viewCoupons"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				View Coupons </a></td>
	</tr>
	<?php } ?>
	<?php if (in_array(4, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/bannerCMS"
			class="<?php if ($pTabSelection=="bannerCMS"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add Banner </a>
		</td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/viewBanners/0"
			class="<?php if ($pTabSelection=="viewBanner"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				View Banner </a>
		</td>
	</tr>
	<?php } ?>
    <?php if (in_array(5, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="DetailCMS"
			class="<?php if ($pTabSelection=="DetailCMS"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add Deals</a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/viewDeals"
			class="<?php if ($pTabSelection=="viewDeals"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				View Deals </a></td>
	</tr>
	<?php } ?>
	<?php if (in_array(6, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/homeBannerCMS"
			class="<?php if ($pTabSelection=="bannerCMS1"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add HomeBanner </a>
		</td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/viewHomeBanners"
			class="<?php if ($pTabSelection=="viewBanner1"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				View HomeBanner </a>
		</td>
	</tr>
	<?php } ?>
	<?php if (in_array(7, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/occasionCMS"
			class="<?php if ($pTabSelection=="occasion"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Add Occasion </a>
		</td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/viewOccasions"
			class="<?php if ($pTabSelection=="viewoccasions"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				View Occasions </a>
		</td>
	</tr>
	<?php } ?>
	<?php if (in_array(8, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/showContactUs"
			class="<?php if ($pTabSelection=="showContactUs"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				ShowContactUs</a></td>
	</tr>
	<?php } ?>
	<?php if (in_array(9, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/cronJob"
			class="<?php if ($pTabSelection=="cronCMS"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				Cron Job </a>
		</td>
	</tr>
	<?php } ?>
	<?php if (in_array(10, $permArray)){?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/insertMailer"
			class="<?php if ($pTabSelection=="insertMailer"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				InsertMailer</a></td>
	</tr>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/viewMailer"
			class="<?php if ($pTabSelection=="viewMailer"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
				CreateMailer </a></td>
	</tr>
	<?php } ?>
	<?php if (in_array(11, $permArray)){?>
        <tr>
                <td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
                        href="/storeDeals"
                        class="<?php if ($pTabSelection=="storeDeals"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
                                Add StoreDeals</a></td>
        </tr>
        <tr>
                <td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
                        href="/viewstoreDeals"
                        class="<?php if ($pTabSelection=="viewStoreDeals"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
                                View storeDeals </a></td>
        </tr>
        <?php } ?>
	<?php if (in_array(12, $permArray)){?>
		<tr>
                <td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
                        href="/popupOffer"
                        class="<?php if ($pTabSelection=="approveComments"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
                                Add PopupOffer </a></td>
    	</tr>
    	<tr>
                <td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
                        href="/viewPopupOffer"
                        class="<?php if ($pTabSelection=="getcoupons"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
                                View PopupOffer </a></td>
        </tr>		
	<?php } ?>
	<?php if (in_array(13, $permArray)){?>
		<tr>
                <td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
                        href="/haveNoDesc"
                        class="<?php if ($pTabSelection=="haveNoDescription"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
                                Have No Description </a></td>
    	</tr>
    	<!-- <tr>
                <td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
                        href="/getCciCoupons"
                        class="<?php //if ($pTabSelection=="getcoupons"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">
                                Get Coupons </a></td>
        </tr> -->		
	<?php } ?>
	<tr>
		<td style="border-bottom: 1px dotted #e5e5e5;" align="center"><a
			href="/logOut"
			class="<?php if ($pTabSelection=="logOut"){ echo "link_cms_selected"; }else { echo "link_cms"; }?>">Log
				Out </a></td>
	</tr>
	</table>
	</td>
  </tr>
</table>
